package cn.ubeta.b2c.utils;

import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;

/**
 * Created by liudengyong on 16/9/5.
 */

public class DialogHelper {

    /**
     * 弹出确认对话框
     */
    public static void showConform(Context context, String title, String message, DialogInterface.OnClickListener listener) {
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setTitle(title);
        builder.setMessage(message);
        builder.setPositiveButton("确定", listener);
        builder.setNegativeButton("取消", null);
        builder.create().show();
    }
}
